package com.ut;

import com.comdev.common.WebPath;
import com.comdev.ut.string.StringUT;
import com.comdev.ut.xml.XmlUT;

/**
 * User: zhu
 * Date: 13-10-27
 * Time: 上午11:29
 */
public class ConfigUT
{

    private static String isOnline = "";

    public static boolean isOnline()
    {
        if (!StringUT.isEmpty(isOnline))
        {
            return true;
        }
        String i = XmlUT.getValue("//config/online", WebPath.getSysConfigFilePath());
        if (i.equals("1"))
        {
            isOnline = "1";
            return true;
        }
        return false;
    }
}
